var e = require("../../../../common/vendor.js"), n = require("./value.js"), t = require("../../../uv-ui-tools/libs/mixin/mpMixin.js"), i = require("../../../uv-ui-tools/libs/mixin/mixin.js"), o = require("../../../uv-ui-tools/libs/mixin/button.js"), s = require("../../../uv-ui-tools/libs/mixin/openType.js"), u = require("./props.js");

require("../../../uv-ui-tools/libs/function/test.js"), require("../../../uv-ui-tools/libs/function/index.js"), 
require("../../../uv-ui-tools/libs/function/digit.js"), require("../../../uv-ui-tools/libs/util/route.js"), 
require("../../../uv-ui-tools/libs/function/debounce.js"), require("../../../uv-ui-tools/libs/function/throttle.js");

var r = {
    name: "uv-text",
    emits: [ "click" ],
    mixins: [ t.mpMixin, i.mixin, n.value, o.button, s.openType, u.props ],
    computed: {
        valueStyle: function() {
            var e = {
                textDecoration: this.decoration,
                fontWeight: this.bold ? "bold" : "normal",
                wordWrap: this.wordWrap,
                fontSize: this.$uv.addUnit(this.size)
            };
            return !this.type && (e.color = this.color), this.isNvue && this.lines && (e.lines = this.lines), 
            !this.isNvue || "price" == this.mode || this.prefixIcon || this.suffixIcon || (e.flex = 1, 
            e.textAlign = "left" === this.align ? "flex-start" : "center" === this.align ? "center" : "right"), 
            this.lineHeight && (e.lineHeight = this.$uv.addUnit(this.lineHeight)), !this.isNvue && this.block && (e.display = "block"), 
            this.$uv.deepMerge(e, this.$uv.addStyle(this.customStyle));
        },
        isNvue: function() {
            return !1;
        },
        isMp: function() {
            return !0, !0;
        }
    },
    data: function() {
        return {};
    },
    methods: {
        clickHandler: function() {
            this.call && "phone" === this.mode && e.index.makePhoneCall({
                phoneNumber: this.text
            }), this.$emit("click");
        }
    }
};

Array || (e.resolveComponent("uv-icon") + e.resolveComponent("uv-link"))(), Math || (function() {
    return "../../../uv-icon/components/uv-icon/uv-icon.js";
} + function() {
    return "../../../uv-link/components/uv-link/uv-link.js";
})();

var l = e._export_sfc(r, [ [ "render", function(n, t, i, o, s, u) {
    return e.e({
        a: n.show
    }, n.show ? e.e({
        b: "price" === n.mode
    }, "price" === n.mode ? {
        c: e.n(n.type && "uv-text__value--".concat(n.type)),
        d: e.s(u.valueStyle)
    } : {}, {
        e: n.prefixIcon
    }, n.prefixIcon ? {
        f: e.p({
            name: n.prefixIcon,
            customStyle: n.$uv.addStyle(n.iconStyle)
        })
    } : {}, {
        g: "link" === n.mode
    }, "link" === n.mode ? {
        h: e.p({
            text: n.value,
            href: n.href,
            underLine: !0
        })
    } : n.openType && u.isMp ? {
        j: e.t(n.value),
        k: e.s(u.valueStyle),
        l: n.openType,
        m: e.o(function() {
            return n.onGetUserInfo && n.onGetUserInfo.apply(n, arguments);
        }),
        n: e.o(function() {
            return n.onContact && n.onContact.apply(n, arguments);
        }),
        o: e.o(function() {
            return n.onGetPhoneNumber && n.onGetPhoneNumber.apply(n, arguments);
        }),
        p: e.o(function() {
            return n.onError && n.onError.apply(n, arguments);
        }),
        q: e.o(function() {
            return n.onLaunchApp && n.onLaunchApp.apply(n, arguments);
        }),
        r: e.o(function() {
            return n.onOpenSetting && n.onOpenSetting.apply(n, arguments);
        }),
        s: n.lang,
        t: n.sessionFrom,
        v: n.sendMessageTitle,
        w: n.sendMessagePath,
        x: n.sendMessageImg,
        y: n.showMessageCard,
        z: n.appParameter
    } : {
        A: e.t(n.value),
        B: e.s(u.valueStyle),
        C: e.n(n.type && "uv-text__value--".concat(n.type)),
        D: e.n(n.lines && "uv-line-".concat(n.lines))
    }, {
        i: n.openType && u.isMp,
        E: n.suffixIcon
    }, n.suffixIcon ? {
        F: e.p({
            name: n.suffixIcon,
            customStyle: n.$uv.addStyle(n.iconStyle)
        })
    } : {}, {
        G: n.margin,
        H: "left" === n.align ? "flex-start" : "center" === n.align ? "center" : "flex-end",
        I: e.o(function() {
            return u.clickHandler && u.clickHandler.apply(u, arguments);
        })
    }) : {});
} ], [ "__scopeId", "data-v-9c81efeb" ] ]);

wx.createComponent(l);